import http from '../../utils/httpRequest'

export default {
  getCategoryBrandRelationByBrandId (brandId, currentPage = 1, size = 10) {
    return http({
      url: `/pms/categorybrandrelation/getCategoryBrandRelationByBrandId/${brandId}/${currentPage}/${size}`,
      method: 'get'
    })
  },
  save (brandId, brandName, catelogId, catelogName) {
    return http({
      url: `/pms/categorybrandrelation/save`,
      method: 'post',
      data: {
        'brandId': brandId,
        'brandName': brandName,
        'catelogId': catelogId,
        'catelogName': catelogName
      }
    })
  },
  deleteBatch (...id) {
    return http({
      url: `/pms/categorybrandrelation/deleteBatch`,
      method: 'put',
      data: id
    })
  },
  getBrandListPaginationByCategoryId(categoryId,currentPage=1,size=10){
    return http({
      url:`/pms/brand/getBrandListPaginationByCategoryId/${currentPage}/${size}/${categoryId}`,
      method:'get'
    });
  }
}
